<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    <title></title>
    <script src="static/jquery/jquery-3.1.0.min.js"></script>
</head>
<body>


<p><a href="http://www.baidu.com" id="runoob">百度</a></p>
<button id="butt1">显示href属性的值</button>
<button type="submit" value="GO" id="butt2">GO</button>
</body>
<script>
    // attr()方法，获取属性的值。
    $(document).ready(function () {
        $("#butt1").click(function () {
            alert($("#runoob").attr("href"));
        });//end click
        $("#butt2").click(function () {
            alert($("#butt2").attr("value") );
            alert( $("#butt2").attr("type") );
        });// end click
    });//end ready
</script>
</html>